package cn.edu.fzu.delivery.handler;

import cn.edu.fzu.delivery.domain.entity.Courier;
import cn.edu.fzu.delivery.domain.entity.SysUser;
import lombok.Data;

import java.util.List;

/**
 * 分配快递员session
 *
 * @author fangxin
 * @date 2022/11/9
 */
@Data
public class DeliverySession {

    //快递
    private Courier       courier;
    //错误
    private DeliveryError error;
    //快递员池
    private List<SysUser> deliveryManPool;
    //快递当前网点
    private Long          currentNetworkId;
    //快递目的网点
    private Long          destNetworkId;

    private DeliverySession(Courier courier) {
        this.courier = courier;
    }


    public static DeliverySession build(Courier courier) {
        return new DeliverySession(courier);
    }

}
